3.3.68 \(\int \frac {\sqrt {\sec (c+d x)}}{\sqrt {1+\sec (c+d x)}} \, dx\) [268]

Optimal. Leaf size=27 \[ \frac {\sqrt {2} \sinh ^{-1}\left (\frac {\tan (c+d x)}{1+\sec (c+d x)}\right )}{d} \]

[Out]

arcsinh(tan(d*x+c)/(1+sec(d*x+c)))*2^(1/2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {3892, 221} \begin {gather*} \frac {\sqrt {2} \sinh ^{-1}\left (\frac {\tan (c+d x)}{\sec (c+d x)+1}\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[Sec[c + d*x]]/Sqrt[1 + Sec[c + d*x]],x]

[Out]

(Sqrt[2]*ArcSinh[Tan[c + d*x]/(1 + Sec[c + d*x])])/d

Rule 221

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

Rule 3892

Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-Sqrt[2
])*(Sqrt[a]/(b*f)), Subst[Int[1/Sqrt[1 + x^2], x], x, b*(Cot[e + f*x]/(a + b*Csc[e + f*x]))], x] /; FreeQ[{a,
b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && EqQ[d - a/b, 0] && GtQ[a, 0]

Rubi steps

\begin {align*} \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {1+\sec (c+d x)}} \, dx &=-\frac {\sqrt {2} \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,-\frac {\tan (c+d x)}{1+\sec (c+d x)}\right )}{d}\\ &=\frac {\sqrt {2} \sinh ^{-1}\left (\frac {\tan (c+d x)}{1+\sec (c+d x)}\right )}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.03, size = 40, normalized size = 1.48 \begin {gather*} \frac {2 \tanh ^{-1}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos \left (\frac {1}{2} (c+d x)\right ) \sqrt {\frac {1}{1+\cos (c+d x)}}}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[Sec[c + d*x]]/Sqrt[1 + Sec[c + d*x]],x]

[Out]

(2*ArcTanh[Sin[(c + d*x)/2]]*Cos[(c + d*x)/2]*Sqrt[(1 + Cos[c + d*x])^(-1)])/d

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(94\) vs. \(2(25)=50\).
time = 0.12, size = 95, normalized size = 3.52

method result size
default \(\frac {\sqrt {\frac {1}{\cos \left (d x +c \right )}}\, \cos \left (d x +c \right ) \sqrt {\frac {1+\cos \left (d x +c \right )}{\cos \left (d x +c \right )}}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )-1\right )}{d \sin \left (d x +c \right )^{2}}\) \(95\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^(1/2)/(1+sec(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/d*(1/cos(d*x+c))^(1/2)*cos(d*x+c)*((1+cos(d*x+c))/cos(d*x+c))^(1/2)*arctan(1/2*sin(d*x+c)*(-2/(1+cos(d*x+c))
)^(1/2))*(-2/(1+cos(d*x+c)))^(1/2)/sin(d*x+c)^2*(cos(d*x+c)^2-1)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 87 vs. \(2 (25) = 50\).
time = 0.54, size = 87, normalized size = 3.22 \begin {gather*} \frac {\sqrt {2} \log \left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - \sqrt {2} \log \left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}{2 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(1/2)/(1+sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

1/2*(sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - sqrt(2)*log(c
os(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1))/d

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 88 vs. \(2 (25) = 50\).
time = 3.20, size = 88, normalized size = 3.26 \begin {gather*} \frac {\sqrt {2} \log \left (\frac {2 \, \sqrt {2} \sqrt {\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{2 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(1/2)/(1+sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

1/2*sqrt(2)*log((2*sqrt(2)*sqrt((cos(d*x + c) + 1)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) - cos(d*x + c
)^2 + 2*cos(d*x + c) + 3)/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1))/d

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {\sec {\left (c + d x \right )}}}{\sqrt {\sec {\left (c + d x \right )} + 1}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**(1/2)/(1+sec(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(sec(c + d*x))/sqrt(sec(c + d*x) + 1), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^(1/2)/(1+sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(sec(d*x + c))/sqrt(sec(d*x + c) + 1), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}+1}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1/cos(c + d*x))^(1/2)/(1/cos(c + d*x) + 1)^(1/2),x)

[Out]

int((1/cos(c + d*x))^(1/2)/(1/cos(c + d*x) + 1)^(1/2), x)

________________________________________________________________________________________